package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.Material;
import com.yiya.model.MaterialCplex;
import com.yiya.model.MaterialCplexModel;
import com.yiya.model.MaterialExample;

public interface MaterialMapper {
	int countByExample(MaterialExample example);

	int deleteByExample(MaterialExample example);

	int deleteByPrimaryKey(Integer id);

	int insert(Material record);

	int insertSelective(Material record);

	List<Material> selectByExample(MaterialExample example);

	Material selectByPrimaryKey(Integer id);

	int updateByExampleSelective(@Param("record") Material record,
			@Param("example") MaterialExample example);

	int updateByExample(@Param("record") Material record,
			@Param("example") MaterialExample example);

	int updateByPrimaryKeySelective(Material record);

	int updateByPrimaryKey(Material record);

	List<MaterialCplex> selectByModel(MaterialCplexModel record);

	int countByModel(MaterialCplexModel record);
}